package com.casic.aspect;

import com.casic.dao.IotIotDao;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author xudezhi
 * @title: AuthAspect
 * @projectName iot-platform
 * @description: TODO
 * @date 2021/4/139:17:58
 */
@Slf4j
@Aspect
@Component
public class AuthAspect {

    @Autowired
    IotIotDao iotDao;


    @Pointcut("@annotation(com.casic.aspect.annotation.Auth)")
    public void dataFilterCut() {

    }

    @Before("dataFilterCut()")
    public void dataFilter(JoinPoint point) throws Throwable {
        //TODO 认证操作
    }

}
